package com.baiyang.app.ui.login;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class LoginViewModel extends ViewModel {

    private MutableLiveData<JSONObject> loginResult;
    public LoginViewModel(){
        this.loginResult = new MutableLiveData<>();
    }

    public void setLoginResult(JSONObject result){
        this.loginResult.postValue(result);
    }
    public LiveData<JSONObject> getLoginResult(){
        return loginResult;
    }

}
